#!/bin/bash
library_path=$(
  cd $(dirname $0)
  pwd
)
cd $library_path
# 刷新redis中的token,注释即可
nohup python3 library_util/get_access_token.py >log/access_token.log 2>&1 &
path='conf/'
files=$(ls $path)
for filename in $files; do
  filename_noext=${filename%.*}
  nohup python3 library.py --conf "$path$filename" >log/library_"$filename_noext".log 2>&1 &
done
